<?php
namespace Application\Api\Controller;

class ResourceCategory extends Base
{

    private function getService()
    {
        return $this->get(SERVICE_RESOURCECATEGORY);
    }

    /*
        /Api/ResourceCategory/getLastGradeList
    */
    public function getLastGradeListAction()
    {
        $service = $this->getService();
        $temp = $service->getLastGradeList();
        $list = $this->get(SERVICE_FILE)->getFileData($temp['list'], ['dry_icon' => 1]);
        $send = [
            'oss_domain' => getOssDomain(),
            'list' => $list
        ];
        $this->sendSuccess($send);
    }

}